import Vue from 'vue'

export default {
  getAllService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.getallredbag,config).then(r=>{
      callback(r.data);
    });
  },
  gainService:function (config,callback){
    Vue.axios.get(Vue.prototype.$g.gainredbag,{params: config}).then(r=>{
      callback(r.data);
    });
  },
}